const { defineConfig } = require('@vue/cli-service')
module.exports = defineConfig({
  transpileDependencies: true,
  chainWebpack: config => {
    config.module
        .rule('worker')
        .test(/\.js$/)
        .include.add(require.resolve('ace-builds'))
        .end()
        .use('worker-loader')
        .loader('worker-loader')
        .end()
  }
})
// module.exports = {
//   chainWebpack: config => {
//     config.module
//         .rule('worker')
//         .test(/\.js$/)
//         .include.add(require.resolve('ace-builds'))
//         .end()
//         .use('worker-loader')
//         .loader('worker-loader')
//         .end()
//   }
// }

